IntProgression

open class IntProgression : Iterable<Int>

A progression of values of type Int.

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isEmpty
Link copied to clipboard
open fun isEmpty(): Boolean

Checks if the progression is empty.

iterator
Link copied to clipboard
open operator override fun iterator(): IntIterator

Returns an iterator over the elements of this object.

toString
Link copied to clipboard
open override fun toString(): String

Properties

first
Link copied to clipboard
val first: Int

The first element in the progression.

last
Link copied to clipboard
val last: Int

The last element in the progression.

step
Link copied to clipboard
val step: Int

The step of the progression.

Inheritors

IntRange
Link copied to clipboard

Extensions

reversed
Link copied to clipboard
fun IntProgression.reversed(): IntProgression

Returns a progression that goes over the same range in the opposite direction with the same step.

step
Link copied to clipboard
infix fun IntProgression.step(step: Int): IntProgression

Returns a progression that goes over the same range with the given step.